package net.maku.module.service;

import net.maku.framework.common.utils.Result;
import net.maku.module.entity.AgThirdParty;
import net.maku.module.query.AgThirdPartyQuery;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 三方平台地址管理(AgThirdParty)表服务接口
 *
 * @author ChiHongYu
 * @since 2025-01-09 10:06:46
 */
public interface AgThirdPartyService {


    Result<AgThirdParty> createOrUpdate(AgThirdPartyQuery param, long executor);


    AgThirdParty queryById(Integer id);

    
    List<AgThirdParty> queryByLimit(Map<String, Object> param, int limit1, int limit2);

   
    int queryCount(Map<String, Object> param);


    List<AgThirdParty> getList(HashMap<String, Object> param);


    boolean insert(AgThirdParty agThirdParty);

   
    boolean update(AgThirdParty agThirdParty);

   
    boolean deleteById(Integer id);
    
    
    boolean changeUseById(Integer id, String useState);

}
